<?php if (!defined('THINK_PATH')) exit();?><script type="text/javascript">
    function checkqcc()
    {
        var checknumber=document.getElementById("checknumber").value;
        var repaytext=document.getElementById("repaytext").value;
        var communicatetext=document.getElementById("communicatetext").value;
        var sn=document.getElementById("sn").value;
        var optext=document.getElementById("optext").value;
        var plantext=document.getElementById("plantext").value;
        var type=document.getElementById("qclb").value;
        var link=document.getElementById("link").value;
        var hwyid=document.getElementById("hwyid").value;
        var qcpjlb=document.getElementById("qcpjlb").value;
        if(checknumber==""||isNaN(checknumber))
        {
            alert("你输入的监听号码不是数字！");
            return false;
        }else if(repaytext==""){
            alert("你没有输入“第三步：返还规则”列的时间段！请补充！");
            return false;
        }else if(type=="请选择..."){
            alert("请选择你要登记的录音类别，以便浏览人员判断！");
            return false;
        }else if(communicatetext==""){
            alert("你没有输入“第四步：深化客户需求”列的时间段！请补充！");
            return false;
        }else if(sn==""||isNaN(sn)){
            alert("你没有输入通话序号！请补充！");
            return false;
        }else if(optext==""){
            alert("你没有输入“第一步：吸引”列的时间段！请补充！");
            return false;
        }else if(plantext==""){
            alert("你没有输入“第二步：套餐资费”列的时间段！请补充！");
            return false;
        }else if(link==""){
            alert("你没有输入录音连接！请补充！");
            return false;
        }else if(hwyid==""){
            alert("你没有输入话务员工号！请补充！");
            return false;
        }else if(qcpjlb=="请选择..."){
            alert("请选择你要登记的评价类别，以便浏览人员判断！");
            return false;
        }
    }
    function Submitqccn(){
        $('#mainwindow').css('cursor','wait');
        $('input,textarea,select').css('cursor','wait');
        if(checkqcc() != false){
            $.post('../index.php/Npfe/Qc/SubmitQcxq',$('#xdf').serialize(),function(data){
                $('#res').html(data);
            }); 
        }
        $('#mainwindow').css('cursor','default');
        $('input,textarea,select').css('cursor','');
    }
</script>
<form id="xdf" name="registerform" method="post">
    <table>
        <tr class="gdctrlplan">
            <td colspan="6"><input name="reg-submit" value="保存" type="button" onclick="Submitqccn();" /><input type="reset" name="k" id="k" value="重置" />录音质检记录</td>
        </tr>
        <tr>
            <td>监听号码：</td>
            <td><input type="text" name="checknumber" id="checknumber"  /></td>
            <td>通话序号：</td>
            <td><input type="text" name="sn" id="sn"  /></td>
            <td>话务员工号：</td>
            <td><input type="text" name="hwyid" id="hwyid"  /></td>
        </tr>
        <tr class="gdctrlplan">
            <td colspan="6">录音相关信息<input type="checkbox" name="hwyid" id="hwyid"  />自动匹配销售员信息</td>
        </tr>
        <tr>
            <td>话务员名：</td>
            <td><input type="text" name="hwyname" id="hwyname"  /></td>
            <td>组别：</td>
            <td><input type="text" name="groupname" id="groupname"  /></td>
            <td>组长：</td>
            <td><input type="text" name="headman" id="headman"  /></td>
            <td></td>
        </tr>
        <tr>
            <td colspan="8">
                <table border="1" cellspacing="1" borderclordark="#000" width="100%">
                    <tr>
                        <th>第一步：吸引</th>
                        <th>第二步：以附送形式说套餐</th>
                        <th>第三步：告知返还规则</th>
                        <th>第四步：深化客户需求</th>
                    </tr>
                    <tr>
                        <td><input type="checkbox" value="1" name="isop" id="isop"  />（勾上代表“是”）</td>
                        <td><input type="checkbox" value="2" name="isplan" id="isplan"  />（勾上代表“是”）</td>
                        <td><input type="checkbox" value="3" name="isrepay" id="isrepay"  />（勾上代表“是”）</td>
                        <td><input type="checkbox" value="4" name="iscommunicate" id="iscommunicate"  />（勾上代表“是”）</td>
                    </tr>
                    <tr>
                        <td>时间：<input type="text" name="optext" value="00:00-00:00" id="optext"  /></td>
                        <td>时间：<input type="text" name="plantext" value="00:00-00:00" id="plantext"  /></td>
                        <td>时间：<input type="text" name="repaytext" value="00:00-00:00" id="repaytext"  /></td>
                        <td>时间：<input type="text" name="communicatetext" value="00:00-00:00" id="communicatetext"  /></td>
                    </tr>
                    <tr>
                        <td colspan="2">总评价：<br><textarea name="fa" id="fa" style = "width:400px"></textarea></td>
                        <td colspan="2" valign="top">建议：<br><textarea name="fb" id="fb" style = "width:400px"></textarea></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>录音类型：</td>
            <td><select name="qclb" id="qclb"><?php echo ($getleibie); ?></select></td>
            <td>评价类型：</td>
            <td><select name="qcpjlb" id="qcpjlb"><?php echo ($getpjleibie); ?></select></td>
            <td>录音连接：</td>
            <td><input type="text" name="link" id="link"  /></td>
        </tr>
    </table>
</form>
<div id="res"></div>
<script type="text/javascript">
    if(fa != null){
        fa.destroy();
        fa = null;
        var fa = UE.getEditor('fa',{toolbars: [
            ['undo', 'redo','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc'],
        ]});
    }else{
        var fa = UE.getEditor('fa',{toolbars: [
            ['undo', 'redo','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc'],
        ]}); 
    }
    if(fb != null){
        fb.destroy();
        fb = null;
        var fb = UE.getEditor('fb',{toolbars: [
            ['undo', 'redo','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc'],
        ]});
    }else{
        var fb = UE.getEditor('fb',{toolbars: [
            ['undo', 'redo','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc'],
        ]}); 
    }
</script>